<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_SNF_PRL_40_EditPageForGroup</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_SNF_PRL_40_EditPageForGroup</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add new page for group --</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Add new page on group editor menu--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=New Staff</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add New Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add New Page</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPageNodeSelector']//a[@title='Up Level']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPageNodeSelector']//a[@title='Up Level']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>pageName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>pageName</td>
	<td>Test_SNF_PRL_40</td>
</tr>
<tr>
	<td>type</td>
	<td>i18nizedLabel</td>
	<td>Test_SNF_PRL_40</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Next to move step 2--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Keep empty layout and click Next move step 3--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),'Next')]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click Finish --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://localhost:8080/portal/private/classic/organization/Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit page</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Page</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View layout of page before change--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class=&quot;VIEW-PAGE&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>//div[@class=&quot;VIEW-PAGE&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Container tab--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),&quot;Containers&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),&quot;Containers&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add container by drag &amp; drop--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='oneRow']/div</td>
	<td>//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div</td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@id='oneRow']/div</td>
	<td>//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Application tab--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),&quot;Applications&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),&quot;Applications&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Drag &amp; drop application into the container added above--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/img</td>
	<td>//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div</td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/img</td>
	<td>//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>UIPortalApplication</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>UIPortalApplication</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Edit application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[contains(@title,&quot;Hold&quot;)]</td>
	<td>Calculator</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Edit Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Edit Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>title</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>title</td>
	<td>Test_SNF_PRL_40</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Select Icon tab --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Decoration Themes--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Pink Simple']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Pink Simple']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View after change something in application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Return to normail view --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[contains(@title,&quot;Hold&quot;)]</td>
	<td>Test_SNF_PRL_40</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Delete Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Delete Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this portlet?</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Container tab to delete container --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(text(),&quot;Containers&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(text(),&quot;Containers&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[contains(@title,&quot;Hold&quot;)]</td>
	<td>Container</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Delete Container']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Delete Container']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure to delete this Container?</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Click to Finish</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPageEditor']//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPageEditor']//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View node after change application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>assertLocation</td>
	<td>http://localhost:8080/portal/groups/:organization:management:executive-board/organization/Test_SNF_PRL_40</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to Edit Navigation --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Group</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete node --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_40']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_40']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_40']</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_40']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure to delete this node?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to Page Management --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>pageTitle</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>pageTitle</td>
	<td>Test_SNF_PRL_40</td>
</tr>
<tr>
	<td>select</td>
	<td>name=searchOption</td>
	<td>label=group</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete page --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Do you want to delete this page?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(@onclick,&quot;action=Close&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(@onclick,&quot;action=Close&quot;)]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
